package com.zp.base;

public class ConstructOverload {
	
	public ConstructOverload(){
		this(4);//必须写在第一行,调用了第二个带参的构造方法;
		System.out.println("test");
	}
	
	public ConstructOverload(int i){
		System.out.println(++i);
	}
	
	public static void main(String [] args){
		ConstructOverload c1 = new ConstructOverload();
		ConstructOverload c2 = new ConstructOverload(3);
	}
}
